'use strict'


    let Koa = require('koa');
    let nunjucks=require('nunjucks');
    let bodyParser = require('koa-bodyparser');
    let controller=require('./controllers');
    let templating = require('./templating');



    let app = new Koa();


    app.use(templating);
    app.use(bodyParser());
    app.use(controller());


    
    let port = 4050;
    app.listen(port);
    console.log(`服务器在运行中：http://localhost:${port}`);
